package com.gw.yunke.service;

import com.gw.yunke.domain.Part;
import com.gw.yunke.domain.User;
import com.gw.yunke.domain.dto.PartReq;

import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.text.ParseException;
import java.util.List;

public interface IPartService {

    List<Part> getPartsBySectionId(Long sectionId);

    @Transactional
    int createPart(PartReq partReq, MultipartFile multipartFile, User user) throws Exception;
}
